package com.general.adminconsumer.interfaces;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Songjiuhua
 * @date 2018-01-30
 */
@Service
@FeignClient(value = "admin-server")
public interface TestService {

    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    String sayHelloToAdminServer(@RequestParam(value = "name") String name);

}
